package main.java.com.doncodefrom2026.controller;

import main.java.com.doncodefrom2026.vo.HtmlString;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Html2Markdown {

    @PostMapping("/html2markdown")
    public String html2Markdown(@RequestBody HtmlString htmlString) {
        String html = htmlString.getHtml();
        return "解析结果";
    }

    @PostMapping("/health")
    public String health() {
        return "connect is ok";
    }
}
